Skip to content

skip incomplete API reference generations#304

Closed
thebiglabasky wants to merge 1 commit into
mainfrom
herve/skip-low-quality-api-doc-prs
Closed

skip incomplete API reference generations#304
thebiglabasky wants to merge 1 commit into
mainfrom
herve/skip-low-quality-api-doc-prs

Conversation

@thebiglabasky
Copy link
Copy Markdown
Contributor

Affected Components

  • Content & Marketing
  • Pricing
  • Test
  • Docs
  • Learn
  • Other

Notes for the Reviewer

Adds a quality gate to the generated API endpoint PR workflow. The generator now skips undocumented operations when the OpenAPI metadata is too incomplete to render a useful Mintlify API Reference page.

For now it skips operations that:

  • only expose a default response
  • omit path parameter metadata for templated paths like /v1/accounts/{accountId}/members

This prevents creating technically valid MDX stubs that render as poor API docs because the upstream OpenAPI operation lacks response/status/schema/parameter detail.

Validation:

  • node --check .github/scripts/detect-new-endpoints.mjs
  • DRY_RUN=1 node .github/scripts/detect-new-endpoints.mjs

The dry run now skips the incomplete account members, cancel, and v2 check-session operations and only keeps endpoints with enough metadata to render useful reference pages.

New Dependency Submission

None.

Screenshots

No visual changes.

@mintlify
Copy link
Copy Markdown
Contributor

mintlify Bot commented May 12, 2026

Preview deployment for your docs. Learn more about Mintlify Previews.

Project Status Preview Updated (UTC)
checkly-422f444a 🟢 Ready View Preview May 12, 2026, 7:01 PM

💡 Tip: Enable Workflows to automatically generate PRs for you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant